import scala.util.Random

/**
 * Created by juntzhan on 2015/7/24.
 */
object HelloWorld {
  def main(args: Array[String]) {
//    object CustomerID {
//      def apply(name: String) = s"$name--${Random.nextLong}"
//      def unapply(customerID: String): Option[String] = {
//        val name = customerID.split("--").head
//        if (name.nonEmpty) Some(name) else None
//      }
//    }
//    val customer2ID = CustomerID("")
//    println(customer2ID)
//    val CustomerID(name) = customer2ID
//    println(name)
//    class IntPair(val x: Int, val y: Int)
//
//    object IntPair {
//      import math.Ordering
//      implicit def ipord: Ordering[IntPair] =
//        Ordering.by(ip => (ip.x, ip.y))
//    }
    val a=Array(1,2,3)
    val b=Array(1,2,3)
    val c= Array(a,b)
    Array.concat(c: _*)
  }
}
